<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>form</title>
</head>
<body>
<%request.setCharacterEncoding("GBK");%>
<form action="work.jsp"method="post">
    <table>
        <tr>
            <td>姓名:</td>
            <!--这里的name属性的值一定要和JavaBean中相应属性的名字相同-->
            <td><input type="text"name="name"value=""></td>
        </tr>
        <tr>
            <td>性别:</td>
            <td><input type="text"name="set"value=""></td>
        </tr>
        <tr>
            <td>年龄:</td>
            <td><input type="text"name="age" value=""></td>
        </tr>
        <tr>
            <td colspan="2" align="center"><input value="提交"type="submit"></td>
        </tr>
        </table>
</form>
</body>
</html>